'''
打印‘*’正方形, 使用循环嵌套
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
'''
i = 1
while i <= 5:
    j = 1
    while j <= i:
        print('h', end=' ')
        j += 1
    print()
    i += 1
